<template>
	<view class="result">
		<view class="item" v-for="(item, index) in list" :key="index">
			<view class="box">
				<view class="label">
					收客源地：
				</view>
				<view class="value">
					{{item.origin}}
				</view>
			</view>
			<view class="box">
				<view class="label">
					线路名称：
				</view>
				<view class="value">
					{{item.itinerary}}
				</view>
			</view>
			<view class="box">
				<view class="label">
					开始时间：
				</view>
				<view class="value">
					{{item.time_come}}
				</view>
			</view>
			<view class="box">
				<view class="label">
					结束时间：
				</view>
				<view class="value">
					{{item.time_end}}
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from "vue"
	import {
		onLoad,
		onUnload
	} from "@dcloudio/uni-app"
	import cache from "@/util/cache";

	let list = ref([])

	onLoad(() => {
		list.value = cache.get('Result_Warning')
	})


	onUnload(() => {
		cache.remove('Result_Warning')
	})
</script>


<style lang="scss" scoped>
	.result {
	
		.item {
			margin: 30rpx;
			position: relative;
			background: #fff;
			padding: 30rpx;
			border-radius: 15rpx;
			box-shadow: 0 3rpx 25rpx rgba(0,0,0,.02);

			.value-view {
				color: #999;
				font-size: 24rpx;
			}

			
			.box {
				display: flex;
				line-height: 44rpx;

				.label {
					color: #999;
					margin-right: 5rpx;
					font-size: 24rpx;
				}
			}

		}

	}
</style>